package hcn.protocol.base;

import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by jinxin on 2016/10/24.
 */
@XmlRootElement(name = "bed")
public class BedCommonBean implements Serializable {

    private static final long serialVersionUID = 2823001858891026774L;

    private Integer totalBeds;
    private Integer emptyBeds;
    List<BedCommonDetailBean> details;

    @XmlElement
    public Integer getTotalBeds() {
        return totalBeds;
    }

    public void setTotalBeds(Integer totalBeds) {
        this.totalBeds = totalBeds;
    }

    @XmlElement
    public Integer getEmptyBeds() {
        return emptyBeds;
    }

    public void setEmptyBeds(Integer emptyBeds) {
        this.emptyBeds = emptyBeds;
    }

    @XmlElementWrapper(name = "details")
    @XmlElement(name = "detail")
    public List<BedCommonDetailBean> getDetails() {
        return details;
    }

    public void setDetails(List<BedCommonDetailBean> details) {
        this.details = details;
    }
}
